package com.huluobo.sign

import com.huluobo.lib_base.Res
import com.huluobo.lib_http.Const
import com.huluobo.sign.entity.SignEntity
import kotlinx.coroutines.flow.Flow
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 *  Created by LC on 2025/6/2.
 */
interface ApiService {
    @GET(Const.URL_GET_ALL_SIGN)
    fun getAllSign(
        @Query(Const.PARAM_PAGE) page: String,
        @Query(Const.PARAM_LIMIT) limit: String
    ): Flow<Res<SignEntity>>

    @POST(Const.URL_ADD_SIGN)
    fun addSign(@Body body: RequestBody): Flow<Res<Any>>
}